Repository navigation
SRVKP-15190: Add shared synced resource editor - #1487
openshift-merge-bot[bot] merged 1 commit into
Conversation
|
@ankrsinha: This pull request references SRVKP-15190 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.1.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
PR Reviewer Guide 🔍Warning
Here are some key observations to aid the review process:
|
|
Important The |
9a0f424 to
51cc2c9
Compare
8bd5727 to
b18a863
Compare
- Support reusable Form/YAML synchronization through resource adapters. - Add a minimal ClusterQueue usage example and focused tests. Signed-off-by: Ankur Sinha <anksinha@redhat.com>
b18a863 to
c1cb2f5
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ankrsinha, arvindk-softwaredev The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
0436db3
into
openshift-pipelines:master
Type of Change
Summary
Adds
SyncedResourceEditor, a shared Form/YAML synchronization foundation for CRs.It owns the common behavior:
Resource-specific code provides an adapter that converts between Form values and the complete Kubernetes resource.
Example Usage
ClusterQueueBuilderPageuses theSyncedResourceEditorfor both Create and Edit routes. The route parameter decides the mode:Note: The adapter handles resource-specific data conversion and basic validation. The shared editor does not contain ClusterQueue or LocalQueue-specific logic.
ClusterQueue example
This PR includes a minimal ClusterQueueBuilderPage to demonstrate how one page can support both Create and Edit routes with SyncedResourceEditor.
It is not the full ClusterQueue create / edit implementation.
Validation
Screen Recordings / Screenshot
SRVKP-15190-sync-updated.mp4